package tables;

public class Order {
    private int order_id;
    private int user_id;
    private double order_amount;
    private String consignee_name;
    private String consignee_contact;
    private String consignee_address;

    public Order(int order_id, int user_id, double order_amount, String consignee_name, String consignee_contact, String consignee_address) {
        this.order_id = order_id;
        this.user_id = user_id;
        this.order_amount = order_amount;
        this.consignee_name = consignee_name;
        this.consignee_contact = consignee_contact;
        this.consignee_address = consignee_address;
    }

    public int getOrder_id() {
        return order_id;
    }

    public int getUser_id() {
        return user_id;
    }

    public double getOrder_amount() {
        return order_amount;
    }

    public void setOrder_amount(double order_amount) {
        this.order_amount = order_amount;
    }

    public String getConsignee_name() {
        return consignee_name;
    }

    public void setConsignee_name(String consignee_name) {
        this.consignee_name = consignee_name;
    }

    public String getConsignee_contact() {
        return consignee_contact;
    }

    public void setConsignee_contact(String consignee_contact) {
        this.consignee_contact = consignee_contact;
    }

    public String getConsignee_address() {
        return consignee_address;
    }

    public void setConsignee_address(String consignee_address) {
        this.consignee_address = consignee_address;
    }

    public String toString(int id) {
        return "Order{" +
                "order_id=" + order_id +
                ", user_id=" + user_id +
                ", order_amount=" + order_amount +
                ", consignee_name='" + consignee_name + '\'' +
                ", consignee_contact='" + consignee_contact + '\'' +
                ", consignee_address='" + consignee_address + '\'' +
                "}";
    }

    public static void main(String[] args) {
        Order o = new Order(1,1,150,"lhx","1233141","哒哒");
        System.out.println(o.toString(1));
    }

}
